You made a map, mod, skin, gun or generally cool thing that you want to share with everyone. So how do you create these neat PK3 files that are so easy to drop in the MOHAA main directory?
A PK3 file is a ZIP file that has been renamed to *.pk3 instead of the ordinary *.zip extension.
Most people are perhaps familiar with using ZIP files, but basically they are created by using a program to assemble one or more files into one single file.
The good thing about this is:
You can put anything in them, but lets focus on what to put in them to get a mod working.
You made a mod, right? And you got it working? Good. If it does not work yet: you are reading the wrong tutorial. Making a PK3 will not make your mod work if it did not before.
OK, if you are still here: you have a working mod and a bunch of files scattered around your MOHAA installation.
The thing now is to get all of these files into a PK3 file in the same directory structure. If you have a map, then you have a *.bsp file in <MOHAA>/main/maps or <MOHAA>/main/maps/dm or something similar. Perhaps also a script in the same place. Some custom textures in <MOHAA>/main/textures/SOME_DIR. Probably a *.shader file in <MOHAA>/main/scripts.
The same stuff should be placed in your PK3 file, and the directory structure should be the same. So if you have a file C:/Programs/MOHAA/main/maps/dm/my_cool_map.bsp than it should be placed in maps/dm/my_cool_map.bsp in your PK3 file.
Basically think of your PK3 file as the <MOHAA>/main/ folder. If a file should be in main, then it goes straight into the PK3 without placing it in a folder ( I dont know any type of mod file that should bee directly in main however ), but if it should be in <MOHAA>/MOHAA/main/maps/dm/ then it should be placed in maps/dm/ in your PK3 file.
So remember:
OK: Now I've told you about a lot of file and directory stuff, lets go create an actual PK3 file.
There are lots of packing programs that can create ZIP files out there
...but there is actually an application out there made specifically to create PK3 files: PakScape. A quick goole search should provide you with the latest version. But any of the above programs will work fine as well, just rename the file from *.zip to *.pk3 after you created it.
So place files you need in the right dirs in the PK3 and you should be fine.
Looking in the standard PK3:s shipped with the game in PakScape can be a good idea, or any downloaded working mod for that matter, just to see how a working file can look.